$(function(){
	$("#mainTable").datagrid({
		buttons:[{
			text:'Close',
			handler:function(){

			}
		}]
		,
		onDblClickRow : function(index, row){
			 $('#adialog').dialog('open');
		}
	});
	$("#adialog").dialog({
		closed: true,
		buttons: [{
			text:'Close',
			handler:function(){
				$('#adialog').dialog('close')
			}
		}]
	});
	$("#test-window").window({
		title: '加工数据',
		width: 1000,
		height: 650,
		shadow: true,
		modal: true,
		closed: true,
		minimizable: false,
		maximizable: false,
		collapsible: false		
	});
	$("#machining").click(function(){
		$("#test-window").window('open');
		$("#test-window").window('center');
	})
	$("#gui-show").window({
		title: '图形化显示',
		width: 420,
		height: 450,
		shadow: true,
		modal: true,
		closed: true,
		minimizable: true,
		maximizable: true,
		collapsible: false
	});
	$("#lowgraph").click(function(){
		$("#gui-show").window('open');
		$("#gui-show").window('center');
	})
})